﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;

namespace Himp.Platform.Dc
{
    /// <summary>
    /// 处方类别字典
    /// </summary>
    [Table("RX_TYPE_DICT")]
    public class RxTypeDict : Entity<Guid>, IMultiTenant
    {
        /// <summary>
        /// 使用频次编码
        /// </summary>
        [Column("RX_TYPE_CODG")]
        public string RxTypeCodg { get; set; }

        /// <summary>
        /// 使用频次名称
        /// </summary>
        [Column("RX_TYPE_NAME")]
        public string RxTypeName { get; set; }

        /// <summary>
        /// 数据字典代码
        /// </summary>
        [Column("DATA_DICT_CODE")]
        public string DataDictCode { get; set; }

        /// <summary>
        /// 数据字典名称
        /// </summary>
        [Column("DATA_DICT_NAME")]
        public string DataDictName { get; set; }

        public Guid? TenantId { get; set; }

        public RxTypeDict(string rxTypeCodg,string rxTypeName
            ,string dataDictCode,string dataDictName)
        { 
            RxTypeCodg = rxTypeCodg;
            RxTypeName = rxTypeName;
            DataDictCode = dataDictCode;
            DataDictName = dataDictName;
        }
    }
}
